package com.zougen202301180355.restaurant.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;


/**
 * @author 邹根
 * @date 2025/12/1
 * Spring的配置类
 */
@EnableTransactionManagement  // 开启事务管理
@Configuration
@ComponentScan({"com.zougen202301180355.restaurant"})
@PropertySource("classpath:db.properties")
@Import({DataSourceConfig.class, MyBatisConfig.class})
public class SpringConfig {
}